<template>
  <div class="index_container">
    首页首页首页首页首页首页首页首页首页首页首页首页
    <el-button type="primary" @click="logout">退出</el-button>
  </div>
</template>

<script>
export default {
  name: 'Index',
  methods: {
    logout () {
      // localStorage.clear()
      localStorage.removeItem('token')
      localStorage.removeItem('refresh_token')
      localStorage.removeItem('userInfo')
      localStorage.removeItem('active')
      this.$router.push('/login')
    }
  }
}
</script>

<style lang="less" scoped>

</style>
